package org.harsh.common;


import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Time;

@Data
public class NodeStatus {

    private final long nodeId;
    private final String nodeName;
    private final String nodeAddr;
    private boolean connectivity;
    private boolean serverAccess;
    private int minDelay;
    private int maxDelay;
    private int delay;
    private int ttl;
    private int lossRate;
    private String checkPoint;


    /**
     * 初始化节点Id 和 节点 IP 地址
     *
     * @param nodeId
     * @param nodeAddr
     */
    public NodeStatus(long nodeId, String nodeName, String nodeAddr) {
        this.nodeId = nodeId;
        this.nodeName = nodeName;
        this.nodeAddr = nodeAddr;
    }

}
